package http

import "github.com/gin-gonic/gin"

func HandlerFuncAdapter(f func(*gin.Context) interface{}) func(*gin.Context) {
	return func(c *gin.Context) {
		resp := f(c)
		c.JSON(200, resp)
	}
}
